<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Import namespace="IndyMosaic.Core.Extensions" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Profile
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="profile">
    <% using (Html.BeginForm()) { %>
    <fieldset style="margin-right: 5px;">
        <legend> 
        <%= Html.Gravatar(Membership.GetUser().Email) %>
        <% if (Profile != null)
           { %>
            <%= Profile.FullName %>'s Profile
        <% } %>
        <% else
            {%>
            Profile for: <%= Profile.UserName %>
        <%} %>
        </legend>
        
        <p>
            <label for="name">Name:</label>
            <%= Html.TextBox("fullName", Profile.FullName) %>
        </p>
        <p>
            <input type="submit" value="Save" />
        </p>
        <p>
            <%= Html.ActionLink("Change Password", "ChangePassword") %>
        </p>
    </fieldset>
    <% } %>
    </div>
</asp:Content>
